<!-- Sidebar -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
  <!-- Brand Logo -->
  <a href="dashboard.php" class="brand-link text-center d-flex flex-column align-items-center">
    <img src="assets/img/logo.png" 
        alt="System Logo" 
        class="brand-image img-circle elevation-3 mb-2" 
        style="opacity:.9; max-height:60px;">
    <span class="brand-text font-weight-light">JO &amp; COS PRS</span>
	<p style="font-size:8px;">Job-Order and Contract of Service Personnel Record System</p>
  </a>


  <!-- Sidebar -->
  <div class="sidebar">
    <!-- User Info -->
    <div class="user-panel mt-3 pb-3 mb-3 d-flex align-items-center">
      <div class="image">
      <img src="https://cdn-icons-png.flaticon.com/512/3135/3135715.png" alt="System Logo">
      </div>
      <div class="info">
        <a href="#" class="d-block">
          <?= htmlspecialchars($user['name']) ?> <small></small>
        </a>
      </div>
    </div>

    <!-- Sidebar Menu -->
    <?php $current = basename($_SERVER['PHP_SELF']); ?>
    <nav class="mt-2">
      <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu">
        
        <li class="nav-item">
          <a href="dashboard.php" class="nav-link <?= $current === 'dashboard.php' ? 'active' : '' ?>">
            <i class="nav-icon fas fa-tachometer-alt"></i>
            <p>Dashboard</p>
          </a>
        </li>

        <li class="nav-item">
          <a href="employees.php" class="nav-link <?= $current === 'employees.php' ? 'active' : '' ?>">
            <i class="nav-icon fas fa-users"></i>
            <p>Manage Employees</p>
          </a>
        </li>

       <!-- <li class="nav-item">
          <a href="documents.php" class="nav-link <?= $current === 'documents.php' ? 'active' : '' ?>">
            <i class="nav-icon fas fa-file-alt"></i>
            <p>Documents</p>
          </a>
        </li> -->

        <?php if ($user['role'] === 'public'): ?>
          <li class="nav-item">
            <a href="users.php" class="nav-link <?= $current === 'users.php' ? 'active' : '' ?>">
              <i class="nav-icon fas fa-user-cog"></i>
              <p>Settings</p>
            </a>
          </li>
          <li class="nav-item">
            <a href="reports.php" class="nav-link <?= $current === 'reports.php' ? 'active' : '' ?>">
              <i class="nav-icon fas fa-chart-bar"></i>
              <p>Reports</p>
            </a>
          </li>
        <?php endif; ?>
		<?php if ($user['role'] === 'super'): ?>
		
		 <li class="nav-item">
            <a href="users.php" class="nav-link <?= $current === 'users.php' ? 'active' : '' ?>">
              <i class="nav-icon fas fa-user-cog"></i>
              <p>Settings</p>
            </a>
          </li>
          <li class="nav-item">
            <a href="reports.php" class="nav-link <?= $current === 'reports.php' ? 'active' : '' ?>">
              <i class="nav-icon fas fa-chart-bar"></i>
              <p>Reports</p>
            </a>
          </li>
         <!-- <li class="nav-item">
            <a href="department.php" class="nav-link <?= $current === 'department.php' ? 'active' : '' ?>">
              <i class="nav-icon fas fa-user-cog"></i>
              <p>Add Department</p>
            </a>
          </li>
          <li class="nav-item">
            <a href="job.php" class="nav-link <?= $current === 'job.php' ? 'active' : '' ?>">
              <i class="nav-icon fas fa-chart-bar"></i>
              <p>Add Job Title</p>
            </a>
          </li> -->
		     <?php endif; ?>
      </ul>
    </nav>
    <!-- /.sidebar-menu -->
  </div>
  <!-- /.sidebar -->
</aside>

<!-- Content Wrapper -->
<div class="content-wrapper p-3">
